﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>{site.WriterItem} - 随便看看 - {site.Name}</title>
<script type="text/javascript" src="{site.Dir}_data/SysConfig.js"></script>
<script type="text/javascript" src="{site.Dir}_libs/jquery-min.js"></script>
<script type="text/javascript" src="{site.Dir}_libs/jquery.jtemplates.js"></script>
<script type="text/javascript" src="{site.Dir}scripts/jumbotcms.js?v4"></script>
<link type="text/css" rel="stylesheet" href="{site.Dir}style/global.css" />
<script type="text/javascript" src="{site.Dir}scripts/front.js"></script>
<style type="text/css">
@import url({site.Dir}user/otherfiles/css/style.css);
</style>
<script type="text/javascript">
var pagesize=20;
var page=thispage();
(function(){
	$(document).ready(function() {
		$.ajax({
			type:		"get",
			dataType:	"json",
			data:		"time="+(new Date().getTime()),
			url:		site.Dir + "ajax/user.aspx?oper=ajaxUserInfo",
			success:	function(data){
				UserId = data.userid;
				if(data.iswriter == "1"){
					$("#message_box").hide();
					$("#main").show();
					var id = anchor();
					if(id!="1") id="0";
					aLoad(id);
				}else{

					$("#message_box").show();
					$("#main").hide();
				}
			}
		});
	});
})();
function aLoad(s) {
	page = "1";
	if(s == "1")
		sort = "&sort=1";
		sort = "";
	ajaxList(page);
}
function ajaxList(currentpage)
{
	//设置选项卡
	for(i=0; i<2; i++)
	{
		$$("tab"+i).className = "";
        
	}

	if(sort == "&sort=1")
		$$("tab1").className = "current";
	else
		$$("tab0").className = "current";
	if(currentpage!=null) page=currentpage;
	$.ajax({
		type:		"get",
		dataType:	"json",
		data:		"page="+currentpage+"&pagesize="+pagesize+"&time="+(new Date().getTime()),
		url:		"ajax.aspx?oper=ajaxGetList"+sort,
		error:		function(XmlHttpRequest,textStatus, errorThrown){if(XmlHttpRequest.responseText!=""){alert(XmlHttpRequest.responseText);}},
		success:	function(d){
			switch (d.result)
			{
			case '0':
				JumbotCms.Alert(d.returnval, "0");
				break;
			case '1':
				$("#ajaxList").setTemplateElement("tplList", null, {filter_data: false});
				$("#ajaxList").processTemplate(d);
				$("#ajaxPageBar").html(d.pagerbar);
				break;
			}
		}
	});
}
</script>
<script type="text/javascript" src="{site.Dir}user/otherfiles/scripts/ajax.js"></script>
</head>
<body>
<iframe frameborder="0" scrolling="no" src="{site.Dir}user/index/index.aspx?do=header" width="100%" height="76" marginwidth="0" marginheight="0" hspace="0" vspace="0" id="ifheader"></iframe>
<!--顶部结束,中框架开始-->
<div id="wrap">
	<div id="main" style="display:none;">
		<div id="app_sidebar">
			<ul class="app_list" id="default_userapp">
				<li class="currently"><img src="{site.Dir}user/otherfiles/image/writer_v2/user_home.gif"><a href="{site.Dir}user/index/index.aspx">用户管理中心</a></li>
				<li class="hr"></li>
				<li id="writer" class="bold"><img src="{site.Dir}user/otherfiles/image/writer_v2/ke.gif"><a href="{site.Dir}writer/index/index.aspx?mod=writer">我是{site.WriterItem}</a><em></em></li>
				<li class="small"><a href="{site.Dir}writer/mine/index.aspx?mod=writer">我参与的稿件</a></li>
				<li class="small"><a href="{site.Dir}writer/publish/index.aspx?mod=writer">直接发布稿件</a></li>
				<li class="small"><a href="{site.Dir}writer/income/index.aspx?mod=writer">我的收入明细</a></li>
				<li class="small"><a href="{site.Dir}writer/payget/index.aspx?mod=writer">我要申请提现</a></li>				<li class="small"><a href="{site.Dir}writer/lobby/index.aspx?mod=writer">进稿件任务大厅</a></li>
			</ul>
		</div>
		<div id="mainarea">
			<h2 class="title"> <img src="{site.Dir}user/otherfiles/image/app/network.gif">随便看看 - {site.WriterItem} </h2>
			<div class="tabs_header">
				<ul class="tabs">
					<li><a href="{site.Dir}network/mtag_threadlist/index.aspx"><span>话题</span></a></li>
					<li><a href="{site.Dir}network/mtaglist/"><span>群组</span></a></li>
					<li class="active"><a href="{site.Dir}network/writerlist/index.aspx"><span>{site.WriterItem}列表</span></a></li>
				</ul>
			</div>
			<div id="content" style="width:640px;">
            <textarea id="tplList" style="display:none"><table cellspacing="0" cellpadding="0" width="100%">
	<thead>
		<tr>
			<td width="30">&nbsp;</td>
				<td width="55">&nbsp;</td>
				<td><table cellspacing="0" cellpadding="0" width="100%">
						<tr>
							<td>用户名</td>
							<td width="50">性别</td>
							<td width="50">&nbsp;</td>
						</tr>
					</table></td>
		</tr>
	</thead>
	{#foreach $T.table as record}
	{#if $T.record.no % 2 == 0}<tr class="alt">{#else}<tr>{#/if}
		<td>{$T.record.no}</td>
		<td><div class="avatar48"><a href="javascript:void(0);" onclick="ShowUserPage({$T.record.writeruserid});" title="{$T.record.writerusername}"><img src="{site.Dir}avatar/{$T.record.writeruserid}_m.jpg" onerror="this.src='{site.Dir}avatar/0_m.jpg'" alt="{$T.record.writerusername}" /></a></div></td>
		<td><table cellspacing="0" cellpadding="0" width="100%">
				<tr>
					<td><p class="online_icon_p"> <a href="javascript:void(0);" onclick="ShowUserPage({$T.record.writeruserid});" title="{$T.record.writerusername}">{$T.record.writerusername}</a> </p></td>
					<td width="50">{#if $T.record.writersex == "0"}帅哥{#else}美女{#/if}</td>
					<td width="50"><a href="javascript:void(0);" onclick="ajaxAddMessage('{$T.record.writeruserid}','{$T.record.writerusername}')" title="发短信"><img src="{site.Dir}user/otherfiles/image/icon/pm.gif" align="absmiddle"></a> <a href="javascript:void(0);" onclick="ajaxAddFriend({$T.record.writeruserid})" title="加好友"><img src="{site.Dir}user/otherfiles/image/icon/friend.gif" align="absmiddle"></a> </td>
				</tr>
			</table>
		</td>
	</tr>
	{#/for}
</table></textarea>
				<div class="space_list" id="ajaxList"></div>
				<div id="ajaxPageBar" class="pages"> </div>
			</div>
			<div id="sidebar" style="width:150px;">
				<div class="cat">
					<h3>分类查看</h3>
					<ul class="post_list line_list">
						<li id="tab0"><a href="#0" onclick="aLoad('0');"><span>全部成员</span></a>
						<li id="tab1"><a href="#1" onclick="aLoad('1');"><span>在线成员</span></a>
					</ul>
				</div>
			</div>
		</div>
		<div id="bottom"></div>
	</div>
	<div id="message_box" style="display:none;">
		<dl class="message">
			<dt><span class="tl"></span><span class="tr"></span>友情提醒</dt>
			<dd><span class="em">您当前还不是{site.WriterItem}身份！</span><br>
				点击下列按钮迅速申请为{site.WriterItem}。<br>
				<a href="{site.Dir}writer/apply/index.aspx?mod=writer">点击申请</a></dd>
			<dd class="message_b"><span class="bl"></span><span class="br"></span></dd>
		</dl>
	</div>
	<div id="footer" title=""> </div>
</div>
<iframe frameborder="0" scrolling="no" src="{site.Dir}user/index/index.aspx?do=footer" width="100%" height="50" marginwidth="0" marginheight="0" hspace="0" vspace="0" id="iffooter"></iframe>
</body>
</html>
